<!DOCTYPE html>
<html>
<head>
	<title>客户开发计划管理</title>
	<#include "../common.ftl">
</head>
<body class="childrenBody">
<form class="layui-form" >
	<blockquote class="layui-elem-quote quoteBox">
	    市场开拓计划
    </blockquote>

    <fieldset class="layui-elem-field layui-field-title">
        <div class="layui-field-box" align="center">
            <form class="layui-form">
                <div class="layui-inline">
                    <#if permissions?seq_contains("102001")>
                        <div class="layui-input-inline">
                            <input type="text" name="customerName"
                                   class="layui-input
					searchVal" placeholder="客户名" />
                        </div>
                        <div class="layui-input-inline">
                            <input type="text" name="createMan" class="layui-input
					searchVal" placeholder="创建人" />
                        </div>
                        <div class="layui-input-inline">
                            <select name="devResult"  id="devResult"  >
                                <option value="" >开发状态</option>
                                <option value="0">未开发</option>
                                <option value="1" >开发中</option>
                                <option value="2" >开发成功</option>
                                <option value="3" >开发失败</option>
                            </select>
                        </div>
                        <a class="layui-btn search_btn" data-type="reload"><i
                                    class="layui-icon">&#xe615;</i> 搜索</a>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </#if>

                </div>
            </form>
        </div>
    </fieldset>

    <hr>

    <div>
        <a class="layui-btn" data-type="reload" id="refresh"><i
                    class="layui-icon">&#xe669;</i> 刷新</a>
    </div>

    <hr>

    <#--表格，显示所有客户开发计划信息-->
	<table id="saleChanceList" class="layui-table"  lay-filter="saleChances"></table>


	<script type="text/html" id="toolbarDemo">
	</script>


	<!--
	    行工具栏操作：
	        开放状态为未开发或开发中，可以点击开发进行添加计划项数据
	        开发状态为开发失败或成功可以点击详情查看详情数据
	-->
	<script id="op" type="text/html" >
		{{# if (d.devResult=== 0 || d.devResult==1) { }}
            <#if permissions?seq_contains("102003")>
			<a href="javascript:;"  class="layui-btn layui-btn-warm layui-btn-xs"  lay-event="dev">开发</a>
            </#if>
		{{# } else { }}
            <#if permissions?seq_contains("102002")>
			<a href="javascript:;" class="layui-btn layui-btn-normal layui-btn-xs"  lay-event="info">详情</a>
            </#if>
		{{# } }}
	</script>

</form>
<script type="text/javascript" src="${ctx}/js/cusDevPlan/cus.dev.plan.js"></script>

</body>
</html>